package com.svs.generator.helper;

public class BizTableHelper {

	public static final Integer NOT_CREATE = 0;
	public static final Integer NOT_SYNC = 1;
	public static final Integer SYNCED = 2;


	public static String ID_CATA_INCREMENT = "1" ;
	public static String ID_CATA_NO_INCREMENT = "0" ;
	
	public static String IS_PK = "1" ;
	public static String IS_NOT_NULL = "1" ;
	public static String IS_INSERT = "1" ;
	public static String IS_EDIT = "1" ;
	public static String IS_LIST = "1" ;
	public static String IS_QUERY = "1" ;
	public static String IS_NOT_QUERY = "0" ;
	public static String IS_IMPORT = "1" ;
	public static String INPUT_INPUT = "input" ;
	public static String INPUT_HIDDEN = "hidden" ;
	public static String INPUT_TEXTAREA = "textarea" ;
	public static String INPUT_RICHTEXT = "richtext" ;
	public static String INPUT_IMAGE = "image" ;
	public static String INPUT_FILE = "file" ;
	

	public static String getStateName(Integer state) {
		String result = "未创建";
		if (NOT_SYNC.equals(state)) {
			result = "未同步";
		}
		if (SYNCED.equals(state)) {
			result = "已同步";
		}
		return result ;
	}
}
